package com.meituan.sdk.model.pms.accounting.suspend;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 挂账
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/accounting/suspend",
    businessId = 57,
    apiVersion = "10027",
    apiName = "suspend",
    needAuth = true
)
public class SuspendRequest implements MeituanRequest<SuspendResponse> {
    /**
    * <p data-diff-id="ct-diff-id-c6638b70-94cf-4413-afd4-168a5cf1ddfd">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-0b4479c0-aa15-4a21-893a-48539f857f6d">接待单ID</p>
    */
    @NotEmpty(message = "checkinIds不能为空")
    @SerializedName("checkinIds")
    private List<Long> checkinIds;
    /**
    * <p data-diff-id="ct-diff-id-de372a4f-fd9b-4a1c-a48a-7f9cacf17a57"><span style="color: #333">是否检查必须生成过房费，不传默认为true</span></p>
    */
    @SerializedName("checkRoomRent")
    private Boolean checkRoomRent;
    /**
    * <p data-diff-id="ct-diff-id-6c760dfa-5609-4fdc-871a-5ed3f4249fa5"><span style="color: #333">是否检查房费加收，不传默认为true</span></p>
    */
    @SerializedName("checkRoomCharge")
    private Boolean checkRoomCharge;
    /**
    * <p data-diff-id="ct-diff-id-25e9dbdd-5e4e-462f-9371-1aec13c93c63">挂账原因</p>
    */
    @NotBlank(message = "reason不能为空")
    @SerializedName("reason")
    private String reason;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<Long> getCheckinIds() {
        return checkinIds;
    }
    public void setCheckinIds(List<Long> checkinIds) {
        this.checkinIds = checkinIds;
    }
    public Boolean getCheckRoomRent() {
        return checkRoomRent;
    }
    public void setCheckRoomRent(Boolean checkRoomRent) {
        this.checkRoomRent = checkRoomRent;
    }
    public Boolean getCheckRoomCharge() {
        return checkRoomCharge;
    }
    public void setCheckRoomCharge(Boolean checkRoomCharge) {
        this.checkRoomCharge = checkRoomCharge;
    }
    public String getReason() {
        return reason;
    }
    public void setReason(String reason) {
        this.reason = reason;
    }


    @Override
    public MeituanResponse<SuspendResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<SuspendResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "SuspendRequest{" + "hotelId=" + hotelId + "," + "checkinIds=" + checkinIds + "," + "checkRoomRent=" + checkRoomRent + "," + "checkRoomCharge=" + checkRoomCharge + "," + "reason=" + reason + "}";
    }
}
